<?php
class Application_Form_Renderer_View_Common extends Application_Form_Renderer_RendererAbstract
{
	protected function _setupRender ()
	{
		$forms = $this->getForms();
		foreach ($forms as $form) {
			$form->setDecorators(
					array('FormElements', 
					array('HtmlTag', array('tag' => 'dl', 'class' => 'view')), 'Form')
				)->setElementDecorators(array());
				
			$elements = $form->getElements();
			foreach ($elements as $element) {
				$element->addDecorator(new Application_Form_Decorator_View_Common());
			}
		}
	}
}